using System;
using System.Collections.Generic;
using System.Collections;
using CMS.Core.DataInterfaces;
using CMS.Core.Domain;

namespace CMS.Presenters
{
    public class MenuPresenter
    {
        private IMenuView menuView;
        private IChucNangDao chucnangDao;

        public MenuPresenter(IMenuView menuView, IChucNangDao chucnangDao)
        {
            this.menuView = menuView;
            this.chucnangDao = chucnangDao;
        }

        public IList AllMenus(string maNguoiSuDung)
        {
            return chucnangDao.GetAllChucNang(maNguoiSuDung);
        }

        public IList GetAllViews()
        {
            return chucnangDao.GetAllViews();
        }
    }
}
